<!-- 图片加载 -->
<template>
  <div>
    <img :src="props.src" :alt="props.alt" :height="props.height" :width="props.width">
  </div>
</template>

<script lang="ts" setup>
import {ref, reactive, defineProps, withDefaults} from 'vue';

interface ImageLoadingProps {
  src: string
  alt: string
  width: number
  height: number
}

const props = withDefaults(defineProps<ImageLoadingProps>(), {
  src: '',
  alt: 'loading-alt',
  height: 128,
  width: 128
})
</script>

<style scoped>

</style>
